from django.urls import path

from lapi_app.view.environment_view.edit_env import get_environment, add_environment, edit_environment, del_env
from lapi_app.view.environment_view.env_list import Env_list
from lapi_app.view.environment_view.environment import Env_view

urlpatterns = [
    path("api/environment/all", Env_view.as_view()),  # 环境列表

    path("api/environment/list", Env_list.as_view()),  # 接口信息中的环境列表

    path("api/environment/get_environment", get_environment),  # 获取单个环境信息

    path("api/environment/add_env", add_environment),  # 新增环境

    path("api/environment/edit_env", edit_environment),  # 编辑环境

    path("api/environment/del_env", del_env),  # 删除环境
]